<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 15:44
 * 添加扣款奖励配置信息
 */

$ocpc_start     = $route->bodyParams['ocpc_start'];          //开始
$ocpc_end       = $route->bodyParams['ocpc_end'];            //结束
$ocpc_unit      = $route->bodyParams['ocpc_unit'];           //'单位 0-分钟 1-小时'
$ocpc_oesid     = $route->bodyParams['ocpc_oesid'];          //所属机构ID
$ocpc_price     = $route->bodyParams['ocpc_price'];          //金额
$ocpc_type      = $route->bodyParams['ocpc_type'];           //类型 0-迟到扣款 1-加班补助




//写入数组
$insertArr = [
    'ocpc_start'      => $ocpc_start,
    'ocpc_end'        => $ocpc_end,
    'ocpc_unit'       => $ocpc_unit,
    'ocpc_oesid'      => $ocpc_oesid,
    'ocpc_price'      => $ocpc_price,
    'ocpc_type'       => $ocpc_type,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_commend_penalize_config",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );
